package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockAllotBillDetailEntity;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓库调拨单明细 保存对象
 *
 * @author Gzhao 2021-03-11
 */
@Data
@ApiModel("仓库调拨单明细-保存对象")
public class StoreStockAllotBillDetailSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品sku")
    private String sku;

    @ApiModelProperty(value = "出库仓库编码")
    private String outStoreCode;

    @ApiModelProperty(value = "入库仓库编码")
    private String inStoreCode;

    @ApiModelProperty(value = "调拨数量")
    private Integer skuNum;

    public StoreStockAllotBillDetailEntity convertEntity() {
        StoreStockAllotBillDetailEntity target = new StoreStockAllotBillDetailEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
